<script setup>
	import { ref, defineExpose } from "vue";

	const a = ref(101);
	const b = 201;

	// 向外界暴露数据
	defineExpose({
		a,
		b,
	});

	setTimeout(() => {
		a.value++;
	}, 3000);

</script>

<template>
	<h4>Child3</h4>
	<p>a/b:{{ a }} / {{ b }}</p>
</template>